//
//  TrainIndexViewController.h
//  ELife
//
//  Created by  刘奇男 on 11-6-8.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <QuartzCore/QuartzCore.h>

@interface TrainIndexViewController : UIViewController <UITextFieldDelegate> {
 
    UISegmentedControl *choseType;
    
    UITextField *startCityTextField;
    UITextField *endCityTextField;
    
    UIButton *choseStartCityButton;
    UIButton *choseEndCityButton;
    UIButton *searchStationButton;
    
    UIView *segmentControlBack;
    UIView *choseCityBack;
    
    UIView *searchLineBack;
    UITextField *lineTextField;
    UIButton *searchLineButton;
    
	UIDatePicker *datePickerView;
    UIControl *choseDate;
    
    UILabel *dateLabel;
    NSDate *date;
}

@property (nonatomic, retain) IBOutlet UISegmentedControl *choseType;

@property (nonatomic, retain) IBOutlet UITextField *startCityTextField;
@property (nonatomic, retain) IBOutlet UITextField *endCityTextField;

@property (nonatomic, retain) IBOutlet UIButton *choseStartCityButton;
@property (nonatomic, retain) IBOutlet UIButton *choseEndCityButton;
@property (nonatomic, retain) IBOutlet UIButton *searchStationButton;


@property (nonatomic, retain) IBOutlet UIView *segmentControlBack;
@property (nonatomic, retain) IBOutlet UIView *choseCityBack;

@property (nonatomic, retain) IBOutlet UIView *searchLineBack;
@property (nonatomic, retain) IBOutlet UITextField *lineTextField;

@property (nonatomic, retain) IBOutlet UIDatePicker *datePickerView;
@property (nonatomic, retain) IBOutlet UIControl *choseDate;
@property (nonatomic, retain) IBOutlet UILabel *dateLabel;

@property (nonatomic, retain) NSDate *date;

-(IBAction) choseDate:(id)sender;
-(IBAction) searchStation:(id)sender;

-(IBAction) searchLine:(id)sender;

- (IBAction)choseType:(id)sender;

-(IBAction) confirmDate:(id) sender;
-(IBAction) cancelDatePicker:(id) sender;

@end
